package top.dingwen.io.treasure.sensitive.constant;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.AllArgsConstructor;
import lombok.Getter;
import top.dingwen.io.treasure.base.enums.IBaseEnum;

/**
 * WordsType : 敏感词类型
 *
 * @author dingwen
 * @since 2024/11/21 09:22
 */
@Getter
@AllArgsConstructor
public enum WordsType implements IBaseEnum<String> {
    /**
     * 黑名单
     */
    B("B", "黑名单"),

    /**
     * 白名单
     */
    W("W", "白名单");

    /**
     * 键
     */
    @EnumValue
    private final String code;

    /**
     * 描述
     */
    @JsonValue
    private final String desc;
}
